package cuit.campus.taskRunning.user.serivce;

import com.baomidou.mybatisplus.extension.service.IService;
import cuit.campus.taskRunning.user.entry.dto.UserDto;
import cuit.campus.taskRunning.user.entry.po.User;
import cuit.campus.taskRunning.commons.response.Result;

public interface UserService extends IService<User> {

    /**
     * 用户密码登陆
     * @param userDto
     * @return
     */
    Result login( UserDto userDto);

    /**
     * 手机号登陆
     * @param phone
     * @param code
     * @return
     */
    Result login(String phone, String code);

    /**
     * 注册用户
     * @param userDto
     * @return
     */
    boolean save(UserDto userDto);

    /**
     * 发送验证码
     * @param userDto
     * @return
     */
    Result send(UserDto userDto);

    /**
     *  查所有用户
     * @return
     */
    Result selectAllUsers();


}
